<div class="contentArea">
    <div class="Item hr">
        <div class="current">编辑管理员信息</div>
    </div>
    <form>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
            <tr>
                <th width="80">登录用户名：</th>
                <td><input name="admin[username]" type="text" class="input" size="30" value="{$userinfo['username']}" /></td>
            </tr>
            <tr>
                <th width="80">新密码：</th>
                <td><input class="input" name="admin[pwd]" type="password" size="30" /></td>
            </tr>
            <tr>
                <th width="80">确认密码：</th>
                <td><input class="input" name="admin[cfm_pwd]" type="password" size="30" /></td>
            </tr>
            <tr>
                <th width="80">真实姓名：</th>
                <td><input name="admin[uname]" type="text" class="input" size="30" value="{$userinfo['uname']}" /></td>
            </tr>
            <tr>
                <th width="80">电子邮箱：</th>
                <td><input name="admin[email]" type="text" class="input" size="30" value="{$userinfo['email']}" /></td>
            </tr>
            <tr>
                <th width="80">状态：</th>
                <td>
                    <select name="admin[status]">
                        <option value="1" <if condition="$userinfo['status'] eq 1" >selected</if>>启用</option>
                        <option value="0" <if condition="$userinfo['status'] eq 0" >selected</if>>禁用</option>
                    </select>
                </td>
            </tr>
            <if condition="false == $userinfo['is_super']">
            <tr>
                <th width="80">所属角色：</th>
                <td>
                    <select name="admin[role_id]">
                        <volist name="roleList" id="role">
                        <option value="{$role['id']}" <if condition="$userinfo['role_id'] == $role['id']" >selected</if> <if condition="$role['pid'] eq 0">disabled="true"</if>>{$role['fullname']}</option>
                        </volist>
                    </select>
                </td>
            </tr>
            </if>
            <tr>
                <th width="80">备注信息：</th>
                <td><textarea class="jq_watermark" rows = "5" cols="68" name="admin[remark]" placeholder="管理员备注信息">{$userinfo['remark']}</textarea></td>
            </tr>
        </table>
        <input type="hidden" name="admin[id]" value="{$userinfo['id']}" />
    </form>
    <div class="commonBtnArea" >
        <button class="btn submit">提交</button>
    </div>
</div>

<script type="text/javascript">
$(".submit").click(function(){
    commonAjaxSubmit("{:U('SysAdminUser/update')}");
    return false;
});
</script>
